<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/layui/css/layui.css"  media="all">
</head>
<body>
<table class="layui-hide" id="test"></table>
<script>
    layui.use('table', function(){
        var table = layui.table;
        table.render({
            elem: '#test'
            ,url:'/admin/allOrders.do'
            ,cols: [[
                {field:'id', width:100, title: 'ID', sort: true}
                ,{field:'cid', width:100, title: '车辆ID'}
                ,{field:'uid', width:100, title: '会员ID'}
                ,{field:'oprice', width:300, title: '总价'}
                ,{field:'status', title: '订单状态', minWidth: 150}
            ]]
            ,page: true
            ,limits:[10,20,30,40]
            ,limit:10
        });
    });
</script>
</body>
</html>